home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_teo_idol_linecross.cog < prev    next >
Text File  |  1999-11-15  |  3KB  |  102 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEO_Idol_LineCross.cog
  4. #
  5. # Swings Camera around to indy's side during a short sayline
  6. #
  7. # [SXC]
  8. #
  9. # 11/23/98 SXC
  10. #
  11. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  12. #
  13. # ========================================================================================
  14.  
  15. symbols
  16.  
  17.     message     startup
  18.     message     crossed
  19.  
  20.     thing       player                  local
  21.     thing       actorindy
  22.     
  23.     thing       camera0
  24.     thing       camera0_tgt0
  25.     thing       camera0_tgt1
  26.     
  27.     keyframe    in_stand4=0in_stand4.key            local
  28.     keyframe    in_SideToHips=0in_stand1_bd_4.key   local
  29.     
  30.     surface     crossurf
  31.     
  32.     int         croscheck=0             local
  33.     int         cursound                local
  34.     int         in_track                local
  35.     int         in_track0               local
  36.     
  37.     sound       indyline0=to06j01.wav   local
  38.     sound       indyline1=to06j02.wav   local
  39.              
  40. end
  41.  
  42. # ========================================================================================
  43.  
  44. code
  45.  
  46. startup:
  47.     player = GetLocalPlayerThing();
  48.     return;
  49.            
  50. # ========================================================================================
  51. crossed:
  52.     If ((GetSenderRef() == crossurf) && (croscheck == 0))
  53.     {
  54.         croscheck = 1;
  55.         MakeMeStop();
  56.         DeselectWeaponWait(player);
  57.         StartCutscene(1);
  58.         SetActorFlags(player, 0x200000);
  59.         CopyPlayerHolsters(player, actorindy);
  60.         SetThingFlags(player, 0x80000);
  61.         ClearThingFlags(actorindy, 0x80000);
  62.         
  63.         SetCameraFocus(2, camera0);
  64.         SetCameraSecondaryFocus(2, camera0_tgt0);
  65.         SetCurrentCamera(2);
  66.         SetCameraFOV(60, 0, 0);
  67.         
  68.         AISetMoveSpeed(actorindy, 1);
  69.         AISetMoveFrame(actorindy, 1);
  70.         AIWaitForStop(actorindy);
  71.         
  72.         in_track0 = PlayKey(actorindy, in_stand4, 2, 0x00, 0);
  73.         PlayKey(actorindy, in_SideToHips, 4, 0x12, 0);
  74.         cursound=PlayVoice(actorindy, indyline0, 1, 0);
  75.         Sleep(1);
  76.         SetCameraLookInterp(2, 1);
  77.         SetCameraInterpSpeed(2, 3);
  78.         Sleep(0.01);
  79.         SetCameraSecondaryFocus(2, camera0_tgt1);
  80.         SetCameraFOV(100, 1, 2);
  81.         WaitForSound(cursound);
  82.         StopKey(actorindy, in_track0, 0.5);
  83.         Sleep(1);
  84.         
  85.         SetCameraLookInterp(2, 0);
  86.         SetCameraInterpSpeed(2, 0);
  87.         SetCameraPosInterp(2, 0);
  88.         sleep(0.01);
  89.         
  90.         CopyOrientAndPos(actorindy, player);         
  91.         ClearThingFlags(player, 0x80000);            
  92.         SetThingFlags(actorindy, 0x80000);                                    
  93.         SetCurrentCamera(1);
  94.         SetCameraFOV(90, 0, 0);                         
  95.         EndCutscene();
  96.         ClearActorFlags(player, 0x200000);                               
  97.     }
  98.     
  99. return;
  100.         
  101. end
  102.